using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Storage;
using Microsoft.Xna.Framework.Content;

namespace MoEngine
{
    /// <summary>
    /// This is a game component that implements IUpdateable.
    /// </summary>
    public class ClockManager : CoreComponent
    {
        public ClockManager()
        {
            // TODO: Construct any child components here
        }

        /// <summary>
        /// TODO: this is temporary
        /// </summary>
        private TimeSpan m_TotalGameTime;

        public TimeSpan TotalGameTime
        {
            get { return m_TotalGameTime; }
        }

        private GameTime m_GameTime;

        public GameTime GameTime
        {
            get { return m_GameTime; }
            set { m_GameTime = value; }
        }


        /// <summary>
        /// Allows the game component to update itself.
        /// </summary>
        /// <param name="gameTime">Provides a snapshot of timing values.</param>
        public override void Update(GameTime gameTime)
        {
            // TODO: Add your update code here
            m_GameTime = gameTime;
            m_TotalGameTime = gameTime.TotalGameTime;

            base.Update(gameTime);
        }
    }
}